package com.app.samba.bean;

import java.io.Serializable;

/**
 * Created Date 2019/6/24
 *
 * @author liangkun
 * description：手机本地文件数据【视频，音乐，图片】
 */
public class LocalMediaBean implements Serializable {
    private String filePath; //文件文件
    private String fileName; //文件名
    private int fileSize; //文件大小
    private long duration; //文件时长
    private MediaType mediaType;//文件类型
    private String thumbPath; //视频封面照
    public int selectPosition; //当图片选择后，索引值
    public int position; //当前图片在列表中顺序
    private String artist;//歌手名

    /**
     * 图片
     *
     * @param type
     * @param path
     * @param size
     * @param fileName
     */
    public LocalMediaBean(MediaType type, String path, int size, String fileName) {
        this.mediaType = type;
        this.filePath = path;
        this.fileSize = size;
        this.fileName = fileName;
    }

    /**
     * 视频
     *
     * @param type
     * @param path
     * @param size
     * @param fileName
     */
    public LocalMediaBean(MediaType type, String path, String thumbPath, long duration, int size, String fileName) {
        this.mediaType = type;
        this.filePath = path;
        this.fileSize = size;
        this.fileName = fileName;
        this.thumbPath = thumbPath;
        this.duration = duration;
    }

    /**
     * 音乐
     *
     * @param type
     * @param path
     * @param size
     * @param fileName
     */
    public LocalMediaBean(MediaType type, String path, long duration, int size, String fileName, String artist) {
        this.mediaType = type;
        this.filePath = path;
        this.fileSize = size;
        this.fileName = fileName;
        this.duration = duration;
        this.artist = artist;
    }

    public enum MediaType {
        IMAGE,
        VIDEO,
        MUSIC
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public int getFileSize() {
        return fileSize;
    }

    public void setFileSize(int fileSize) {
        this.fileSize = fileSize;
    }

    public long getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public MediaType getMediaType() {
        return mediaType;
    }

    public void setMediaType(MediaType mediaType) {
        this.mediaType = mediaType;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public int getSelectPosition() {
        return selectPosition;
    }

    public void setSelectPosition(int selectPosition) {
        this.selectPosition = selectPosition;
    }

    public String getThumbPath() {
        return thumbPath;
    }

    public void setThumbPath(String thumbPath) {
        this.thumbPath = thumbPath;
    }

    public String getArtist() {
        return artist;
    }

    public void setArtist(String artist) {
        this.artist = artist;
    }


    @Override
    public String toString() {
        return "LocalMediaBean{" +
                "filePath='" + filePath + '\'' +
                ", fileName='" + fileName + '\'' +
                ", fileSize=" + fileSize +
                '}';
    }
}
